removing compiler warnings in models