got rid of unnecessary object conversion