trimming unnecessary stuff