got rid of main methods