cleaned up warnings in two files