cleaned up index file removed code that was moved to module