fix method scope for private