updated with first answer
added second answer