changed #main to .main, inheritance issues