add compilation check