finished define major functions for Genius.cs