deleted unnecessary stuff and updated startSession