make code cleaner and safer