adding warnings for unused variables and method, finished