method body one line function bug