updated code to test