mv code to more appropriate place.