added plans functionality