added working ml methods
updated for other methods