cleaned up else block of constructor