optimized  code  but  still   like  a  shit