fix compilation errors

temporary solution with end lines