HashMap :Keys done can be done in better way