working on algorithm part