like.cpp simplification