added second function