modifying function
herk
doesnt crash