got rid of undefined