use correct functionc all