course controller + got rid of int == null checks that were throwing warnings