finished first 2 methods