worked on AW functions and added revcomment field