compile time warning fixed