One dimensional trap