added couple extra functions