finalized all remaining functions.