* modified apply_at