made cylinder script better