code ported

remove debugging lines