changed code for get