pattern memory trick