refactored the code in order to fit into 2kb