errors and gral layout