fixed programming problems