created and added magnetic cap