added method. need to test it.