got both methods working