Determining critical factors to avoid failures in the building process