added necessary function parameters
comented out unused functions for now
commented out unfinished functions