adding pragma
removing unused data rep function
better next key view