resolve compiler error