made getProgress return int to get rid of error