finished subtract
finished all but last function